#include <iostream>
#include <cstdio>
using namespace std;
void f(int n)
{
    int arr[9];
	for(int i=1;i<=8;i++)arr[i]=0;
	int tot=8;
	while(n)
	{
		arr[tot--]=n%2;
		n/=2;
	}
	for(int i=1;i<=8;i++)cout<<arr[i];
}
char s[10000];
int main()
{
	freopen("strpassword.in","r",stdin);
	freopen("strpassword.out","w",stdout);
	gets(s);
	for(int i=0;s[i]&&s[i]!='\n'&&s[i]!='\r';i++)
	{
		f(s[i]);
	}
	fclose(stdin);
	fclose(stdout);
	return 0;
}
